﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using TCKQKL.FrontEnd.Config;
using TCKQKL.FrontEnd.DataModel;
using TCKQKL.Service.LookupClient;

namespace TCKQKL.FrontEnd.Web
{
    public partial class PersonalTradingResult : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            bool haveAssign = (Session["haveAssigns"] != null) ? true : false;
            
            LSClient client = new LSClient();
            InvestorDataProfileUI investor = client.getAccountProfileData(client.getAccountData(HttpContext.Current.User.Identity.Name).investorId);
            client.Close();

            if (investor != null)
            {
                if (Page.Master != null)
                {
                    Label fullName = (Label)Page.Master.FindControl("lblFullName");
                    Label accountNo = (Label)Page.Master.FindControl("lblAccountNo");
                    Label phone = (Label)Page.Master.FindControl("lblPhone");
                    Label address = (Label)Page.Master.FindControl("lblAddress");
                    fullName.Text = investor.name;
                    accountNo.Text = investor.accountNo;
                    address.Text = investor.address;
                    phone.Text = investor.phone;
                }
            }

        }
    }
}
